home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
201-225
/
201
/
draco
/
drinc
/
exec
/
io.g
< prev
next >
Wrap
Text File
|
1995-03-13
|
1KB
|
55 lines
type
Message_t=unknown20,
IORequest_t=struct{
Message_tio_Message;
*Device_tio_Device;
*Unit_tio_Unit;
uintio_Command;
ushortio_Flags;
shortio_Error;
},
IOStdReq_t=struct{
IORequest_tio_io;
ulongio_Actual;
ulongio_Length;
*byteio_Data;
ulongio_Offset;
};
long
DEV_BEGINIO=-30,
DEV_ABORTIO=-36;
ushort
IOB_QUICK=0,
IOF_QUICK=1<<0;
uint
CMD_INVALID=0,
CMD_RESET=1,
CMD_READ=2,
CMD_WRITE=3,
CMD_UPDATE=4,
CMD_CLEAR=5,
CMD_STOP=6,
CMD_START=7,
CMD_FLUSH=8,
CMD_NONSTD=9;
extern
AbortIO(*IORequest_tio)ulong,
BeginIO(*IORequest_tio)void,
CheckIO(*IORequest_tio)*IORequest_t,
CloseDevice(*IORequest_tio)void,
CreateExtIO(*MsgPort_tioReplyPort;ulongsize)*IORequest_t,
CreateStdIO(*MsgPort_tioReplyPort)*IOStdReq_t,
DeleteExtIO(*IORequest_tioExt;ulongsize)void,
DeleteStdIO(*IOStdReq_tioStdReq)void,
DoIO(*IORequest_tio)ulong,
OpenDevice(*chardevName;ulongunitNo;*IORequest_tio;ulongflags)ulong,
SendIO(*IORequest_tio)void,
WaitIO(*IORequest_tio)ulong;